<?php
/**
*
* @author Blackpawn blackpawn666@hotmail.com - http://blackpawnsarchives.net
* @package phpbb3 :: Game Console Mod
* @version $Id: gc_common.php 1.0.2 12-10-2009 Blackpawn $
* @copyright (c) 2004-2009 Blackpawns Archives
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE);

if (!defined('GC_MOD'))
{
	exit;
}

require( $phpbb_root_path . 'config.' . $phpEx);
require( $phpbb_root_path . 'includes/mods/game_console/gc_constants.' . $phpEx);
require( $phpbb_root_path . 'includes/mods/game_console/gc_functions.' . $phpEx);

$game_config = array();

// Game Console Config
$sql = 'SELECT config_name, config_value
FROM ' . GC_CONFIG_TABLE . '';
$result = $db->sql_query($sql);

while ($row = $db->sql_fetchrow($result))
{
	$game_config[$row['config_name']] = $row['config_value'];
}
$db->sql_freeresult($result);	

?>